package a.f.g.a;

import java.text.NumberFormat;

public final class pb
  implements f
{
  private double a;
  private double b;
  private double c;
  private static final boolean d = false;
  public static boolean e;
  
  public pb() {}
  
  public pb(y paramy)
  {
    this(paramy.d(), paramy.f(), paramy.g());
  }
  
  public pb(double paramDouble1, double paramDouble2, double paramDouble3)
  {
    b(paramDouble1);
    d(paramDouble2);
    e(paramDouble3);
  }
  
  public void a()
  {
    this.a = 0.0D;
    this.b = 0.0D;
    this.c = 0.0D;
  }
  
  public double c()
  {
    return Math.sqrt(this.a * this.a + this.b * this.b + this.c * this.c);
  }
  
  public f a(y paramy, f paramf)
  {
    paramf.b(this.a - paramy.d());
    paramf.d(this.b - paramy.f());
    paramf.e(this.c - paramy.g());
    return paramf;
  }
  
  public double c(y paramy)
  {
    return Math.sqrt((this.a - paramy.d()) * (this.a - paramy.d()) + (this.b - paramy.f()) * (this.b - paramy.f()) + (this.c - paramy.g()) * (this.c - paramy.g()));
  }
  
  public double d(y paramy)
  {
    return (this.a - paramy.d()) * (this.a - paramy.d()) + (this.b - paramy.f()) * (this.b - paramy.f()) + (this.c - paramy.g()) * (this.c - paramy.g());
  }
  
  public void a(y paramy)
  {
    if (paramy == null) {
      return;
    }
    this.a += paramy.d();
    this.b += paramy.f();
    this.c += paramy.g();
  }
  
  public void a(double paramDouble1, double paramDouble2, double paramDouble3)
  {
    this.a += paramDouble1;
    this.b += paramDouble2;
    this.c += paramDouble3;
  }
  
  public void a(y paramy, double paramDouble)
  {
    this.a += paramy.d() * paramDouble;
    this.b += paramy.f() * paramDouble;
    this.c += paramy.g() * paramDouble;
  }
  
  public double b(y paramy)
  {
    return this.a * paramy.d() + this.b * paramy.f() + this.c * paramy.g();
  }
  
  public void f(double paramDouble)
  {
    this.a *= paramDouble;
    this.b *= paramDouble;
    this.c *= paramDouble;
  }
  
  public boolean h()
  {
    boolean bool = xb.r;
    if (((bool) || (this.a == 0.0D)) && ((bool) || (this.b == 0.0D))) {
      if (bool) {}
    }
    return this.c == 0.0D;
  }
  
  public void b()
  {
    a(1.0D);
  }
  
  public void a(double paramDouble)
  {
    double d1 = c();
    if (!xb.r) {
      if (d1 == 0.0D) {
        return;
      }
    }
    double d2 = paramDouble / d1;
    this.a *= d2;
    this.b *= d2;
    this.c *= d2;
  }
  
  public double d()
  {
    return this.a;
  }
  
  public void b(double paramDouble)
  {
    this.a = paramDouble;
  }
  
  public double f()
  {
    return this.b;
  }
  
  public void d(double paramDouble)
  {
    this.b = paramDouble;
  }
  
  public double g()
  {
    return this.c;
  }
  
  public void e(double paramDouble)
  {
    this.c = paramDouble;
  }
  
  public void b(double paramDouble1, double paramDouble2, double paramDouble3)
  {
    b(paramDouble1);
    d(paramDouble2);
    e(paramDouble3);
  }
  
  public String toString()
  {
    return "Point3F{x=" + this.a + ", y=" + this.b + ", z=" + this.c + '}';
  }
  
  public static String e(y paramy)
  {
    NumberFormat localNumberFormat = NumberFormat.getNumberInstance();
    localNumberFormat.setMaximumFractionDigits(2);
    localNumberFormat.setMinimumFractionDigits(2);
    return localNumberFormat.format(paramy.d()) + " : " + localNumberFormat.format(paramy.f()) + " : " + localNumberFormat.format(paramy.g());
  }
  
  public boolean g(y paramy)
  {
    boolean bool = xb.r;
    if (!bool) {
      if (Math.abs(paramy.d() - this.a) > 1.E-005D) {
        return false;
      }
    }
    if (!bool) {
      if (Math.abs(paramy.f() - this.b) > 1.E-005D) {
        return false;
      }
    }
    if (!bool) {}
    return Math.abs(paramy.g() - this.c) <= 1.E-005D;
  }
  
  public static boolean a(y paramy1, y paramy2)
  {
    boolean bool = xb.r;
    if (!bool) {
      if (Math.abs(paramy2.d() - paramy1.d()) > 1.E-005D) {
        return false;
      }
    }
    if (!bool) {
      if (Math.abs(paramy2.f() - paramy1.f()) > 1.E-005D) {
        return false;
      }
    }
    if (!bool) {
      if (Math.abs(paramy2.g() - paramy1.g()) > 1.E-005D) {
        return false;
      }
    }
    return true;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.g.a.pb
 * JD-Core Version:    0.7.0.1
 */